//
// Created by lijia on 2021/1/12.
//

#ifndef PERISCOPE_PWM_H
#define PERISCOPE_PWM_H

#include <stm32f1xx_hal.h>
#include <stdint.h>

#define PWM_MIN 0
#define PWM_MAX 20000
#define PWM_ARM_ZERO 500
#define PWM_ARM_FULL 2500

extern void pwm_init(const TIM_HandleTypeDef *);

extern void pwm_set_ch1_counter(uint16_t);

extern void pwm_set_ch2_counter(uint16_t);

#endif //PERISCOPE_PWM_H
